<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>新增指标</h2>
    </div>
    <form action="{:U()}" method="post" class="form-horizontal">
        <input type="text" class="text input-large" name="id" value="{$target.id}" hidden>
        <div class="form-item">
            <label class="item-label">时间<span class="check-tips">（年度2016，月度201611，201601）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="title" value="{$target.title}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">指标类型<span class="check-tips">（固定的指标类型）</span></label>
            <div class="controls">
                <select name="mold">
                    <option value="srcOrderCount"  {$target['mold']=='srcOrderCount'?'selected':''}>原始单量</option>
                    <option value="eachOrderPrice" {$target['mold']=='eachOrderPrice'?'selected':''}>客单价</option>
                </select>

            </div>
        </div>
        <div class="form-item">
            <label class="item-label">指标</label>
            <div class="controls">
                <input type="text" class="text input-large" name="content" value="{$target.content}">
            </div>
        </div>
        <div class="form-item">
            <button class="btn submit-btn " id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Assister/grtargets')}');
    </script>
</block>
